package com.company;

public class Animal {
    public String name;
    public int age;

    public Animal(String name, int age){
        this.name=name;
        this.age=age;
    }

    public String getInfo(){
        return "我叫"+name+",我"+age+"岁";
    }
}
